import request from '@/utils/request'
//body  data
//query params
//headers headers
export const getArticles = (params)=>{
  return request ({
    method:'GET',
    url:'/mp/v1_0/articles',
    params
  })
}


//获取文章频道
export const getArticleChannels = ()=>{
  return request ({
    method:'GET',
    url:'mp/v1_0/channels',
  })
}

//删除
export const deleteArticle = (articleId)=>{
  return request ({
    method:' DELETE',
    url:`/mp/v1_0/articles/${articleId}`,
  })
}


//编辑

